﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RegisterActive.aspx.cs"
    Inherits="NJL.WebUsersRegisterActive" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>账户注册成功-激活账户-农家乐网</title>
    <link rel="stylesheet" type="text/css" href="Styles/base1.css" />
    <link href="Styles/manage.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript" src="Scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript">
        var f = function () {
            var txtEmail = document.getElementById("txtEmail").value;
            var regEmail = /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;  //验证电子邮件正则表达式
            txtEmail = $.trim(txtEmail);
            if (txtEmail == "") {
                alert(" Email账号不能为空哦");
                return false;
            }
            if (regEmail.exec(txtEmail) == null) {
                alert("请输入正确的电子邮件地址");
                return false;
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="cleanFlex managecont">
        <div class="registinfo">
            <p>
                回归田园生活，感受乡村气息！</p>
        </div>
        <!--注册-->
        <div class="m_top_10">
        </div>
        <div id="divRegisterActive" runat="server" class="registtype cleanFlex">
            <div class="centeralign">
                <h1 class="success">
                    恭喜您成功激活账户</h1>
                <p>
                    请注意查收激活邮件，您的邮件地址是：<span>21253589@QQ.com</span></p>
            </div>
            <div class=" tips">
                <p>
                    <strong>提示：</strong></p>
                <p>
                    我们已经在您的邮箱中发送了验证邮件，请及时到收您的邮箱中查收邮件。您只需要点击邮件中的验证地址的链接即可完成注册。 如长时间没有收到邮件，请检查下你的QQ号或邮箱是否填写正确。</p>
                <p>
                    若地址正确，请您点击“重新发送”，我们会向您的邮箱重新发送一封验证邮件。</p>
                <p>
                    若QQ号码或邮箱地址不对，请您点击“重填”重新注册信息。</p>
            </div>
            <!--重新填写-->
            <div class="centeralign font14 succinfo">
                <p>
                    您的邮箱地址：1256895@qq.com<span class="bluelink"><a href="#">重新发送验证邮件</a></span><span
                        class="bluelink"><a href="#">登录邮箱</a></span></p>
                <p class="m_top_10">
                    <input type="button" value="重新注册" class="redbtn" />
                </p>
            </div>
        </div>
        <!--激活成功-->
        <div id="divRegisterOK" runat="server" class="registtype cleanFlex" style="height: auto;">
            <div class="centeralign">
                <h1 class="success">
                    恭喜您注册成功</h1>
                <p>
                    请注意查收激活邮件。</p>
            </div>
            <!--重新填写-->
            <div class="centeralign m_top_20" style="display: none">
                <input type="button" value="返回首页" class="redbtn" onclick="javascript:;window.location.href='/Default.aspx'" />
                <input type="button" value="登  录" class="redbtn" onclick="javascript:;window.location.href='/Login.aspx';" />
            </div>
            <div class="tips">
                <p>如果未收到激活邮件，可能有以下两种原因</p>
                <p>1、注册时，邮件地址输入有误。</p>
                <p>2、您的邮箱安全性设置较高，导致文件在垃圾邮件中。</p>
 
                <p class="centeralign m_top_20">
                    <a onclick="javascript:$('#divReSendEmail').show();" style="cursor: pointer"><strong>重新获取激活邮件</strong></a>
               </p>
               <div class="m_top_20" id="divReSendEmail" style="display: none; border-top:1px solid #c3daf2; padding-top:15px;">
                <table class="tab" cellpadding="0" cellspacing="0" width="100%" align="center">
                    <tr>
                        <td class="left">
                            Email：
                        </td>
                        <td>
                            <asp:TextBox CssClass="input" ID="txtEmail" runat="server" Style="width: 210px;"></asp:TextBox>
                            <span>注册时使用Email注册的用户</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="left">
                            验证码：
                        </td>
                        <td>
                            <asp:TextBox CssClass="input" ID="txtVCode" runat="server" Style="width: 80px;"></asp:TextBox>
                            <img src="/ValidateCode.aspx" id="imgVCode" align="middle" style="cursor: pointer"
                                onclick="javascript:this.src = '/ValidateCode.aspx?' + Date().toString();" alt="验证码"
                                title="看不清，点击图片，换一张" />
                            <span class="bluelink"><a onclick="javascript:document.getElementById('imgVCode').src = '/ValidateCode.aspx?' + Date().toString();"
                                style="cursor: pointer">看不清，换一张</a></span>
                        </td>
                    </tr>
                    <tr>
                        <td class="bottom" colspan="2">
                            <asp:Button CssClass="greenBtn" ID="btnSubmitEmail" runat="server" Text="发送Email激活邮件"
                                OnClick="btnSubmitEmail_Click" Width="150" OnClientClick="return f()" />
                        </td>
                    </tr>
                </table>
            </div>
            </div>
            
        </div>
    </div>
    </form>
</body>
</html>
